FROM alpine-openjdk11:latest
LABEL maintainer="Caden"
USER root
RUN mkdir -p /opt/apps/gksk
COPY ./gksk.jar /opt/apps/gksk
RUN chown -R gksk:sinopharm /opt/apps/gksk/
WORKDIR /opt/apps/gksk
EXPOSE 9080
USER gksk
CMD java -jar gksk.jar --spring.cloud.nacos.discovery.server-addr=${NACOS_ADDR} --spring.cloud.nacos.config.server-addr=${NACOS_ADDR} --spring.cloud.nacos.config.username=${NACOS_USER} --spring.cloud.nacos.config.password=${NACOS_PWD} --spring.cloud.nacos.discovery.namespace=${DEPLOY_NAMESPACE} --spring.cloud.nacos.config.namespace=${DEPLOY_NAMESPACE} --spring.cloud.nacos.discovery.username=${NACOS_USER} --spring.cloud.nacos.discovery.password=${NACOS_PWD}